package com.dfire.soa.mcsao.life;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

/**\
 *
 * Created mangcao with 2019/11/18 20:27
 * Description:
 */
@Service
//@Deprecated
public class PostUtil {
    private final static Logger LOGGER = LoggerFactory.getLogger(PostUtil.class);

    private String PostUtil = "POST_UTIL_";

    public String PostUtil() {
        return PostUtil;

    }


    @PostConstruct
    public void init(){
        LOGGER.info("PostConstruct");
        PostUtil = PostUtil + "PostConstruct_";

    }

    @PreDestroy
    public void PreDestroy(){
        LOGGER.info("PreDestroy");
        PostUtil = PostUtil + "PreDestroy_";
    }
}
